package com.yami.shop.bean.dto.red;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * 发红包
 *
 * @author 刘聪
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "发红包")
public class RedPacketInfoDto {

    @Schema(description = "红包总金额")
    private Double totalAmount;

    @Schema(description = "红包总个数")
    private Integer totalPacket=1;

    @Schema(description = "新建红包用户的用户id")
    private String userId;

    @Schema(description = "红包类型 0:人民币红包 1:DAW红包 2:Gas红包")
    private String type;

    @Schema(description = "红包标题")
    private String title="恭喜发财,大吉大利";

    @Schema(description = "是否支付1已支付0未支付")
    private Integer isPayed;

    @Schema(description = "红包状态0初始1正常2过期")
    private Integer status;

    @Schema(description = "链上来源")
    private String channelCode;

    @Schema(description = "链地址")
    private String chainCode;

    @Schema(description = "链类型(1:DTC2:外部导入)")
    private String chainType;

    @Schema(description = "链上userId")
    private String channelUserId;

    @Schema(description = "Dtc二级ID")
    private String denomId;

    @Schema(description = "红包类型为daw红包时指定daw个数")
    private Integer dawNum;

    @Schema(description = "红包类型为gas红包时gas个数")
    private Integer gasNum;
    @NotEmpty(message = "支付密码不能为空")
    private String password;

    @Schema(description = "商品ID")
    private Long prodId;


}
